import os


def build_mapping():
    mapping = {}
    for root, dirs, files in os.walk("E:\PlayniteHtmlImages"):
        for file in files:
            file_full_path = os.path.join(root, file)
            local_relative_path = os.path.sep.join(file_full_path.split(os.path.sep)[-2:])
            # local_relative_path = local_relative_path.replace("\\", "/")
            local_relative_path = local_relative_path
            mapping[local_relative_path] = file_full_path
            # print(file_full_path)
    return mapping

if __name__ == "__main__":
    build_mapping()